////#include<iostream>
////using namespace std;
////class person
////{
////public:
////	int _year=2;
////	int _sex=1;
////    char* _name=0;
////};
////
////class student :public person
////{
////public:
////
////	int _year=3;
////	int _sex=0;
////
////
////};
////int main()
////{
////	person a;
////	student s;
////	a = s;
////	
////	
////	
////	
////	system("pause");
////	return 0;
////}
//
//
//#include<iostream>
//using namespace std;
////class A
////{
////public:
////	int a = 1;
////
////};
////
////class B:public A
////{
////public:
////	int a = 2;
////	void print()
////	{
////		cout << a << endl;
////		cout << A::a << endl;
////	}
////};
////
//
////class A
////{
////public:
////	/*void print()
////	{
////		cout << "A" << endl;
////	}*/
////
////
////private:
////
////};
////class B:public A
////{
////	 
////public:
////	void print(int i)
////	{
////		cout << "B->" <<i<< endl;
////	}
////};
//
//class A
//{
//public:
//
//	~A()
//	{
//		cout << "~A()" << endl;
//	}
//
//
//};
//class B :public A
//{
//public:
//	~B()
//	{
//		cout << "~B()" << endl;
//	}
//};
//
//
//int main()
//{
//	B b;
//	
//
//	return 0;
//}